<template>
  <div class="row">
    <a href="https://gitee.com/ssoda/vite-vue3-ts-demo"
      ><div class="ico"></div
    ></a>
    <h3>vite-vue3-ts-demo</h3>
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";
export default defineComponent({
  name: "baseHeader",
});
</script>
<style lang="stylus" scoped>
.row {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.ico {
  width: 100px;
  height: 100px;
  border-radius: 100px;
  background: url('https://gitee.com/ssoda/vite-vue3-ts-demo/raw/master/public/icon.jpg') no-repeat center;
  background-size: contain;
  transform: translateX(20px);

  &.ico:after {
    content: '在线交友';
    width: 100px;
    left: 0;
    top: 85px;
    text-align: center;
    position: fixed;
    color: black;
    font-size: 10px;
    font-weight: bold;
    text-shadow: #fff 1px 0 0, #fff 0 1px 0, #fff -1px 0 0, #fff 0 -1px 0;
    z-index: 1;
  }
}

h3 {
  margin-left: 140px;
}
</style>